(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <proto/iffparse.h>
LONG OpenIFF()
SYNOPSIS
struct IFFHandle * iff
LONG rwMode

LOCATION
In IFFParseBase at offset 6
FUNCTION
Initializes an IFFHandle struct for a new session of reading or writing. The direction of the I/O is determined by the rwMode flags supplied (IFFF_READ or IFFF_WRITE).

INPUTS
iff
pointer to IFFHandle struct.
ewMode
IFFF_READ or IFFF_WRITE
RESULT
error - 0 if successfull, IFFERR_#? elsewise.

NOTES
This function tells the custom stream handler to initialize by sending it a IFFCMD_INIT IFFStreamCmd.

EXAMPLE
BUGS
SEE ALSO
CloseIFF(), InitIFF()
INTERNALS
HISTORY
10.03.1997 digulla
Fixed typos (Sorry :-( )
08.03.1997 ldp
Fix indents/add closing } bracket
07.03.1997 digulla
Added patch by Nils Hendrik to avoid problems when CloseIFF() is called after OpenIFF() has failed.
03.02.1997 digulla
Iffparse.library as supplied by Nils H. Lorentzen